package com.connor.kh.sap.bean;

import java.util.HashMap;
import java.util.Map;

public class CheckRule extends AbstractCheckRule {

	public CheckRule() {
		RuleMap = new HashMap<String, String>();
	}

	@Override
	public boolean addRule(String key, String value) {
		RuleMap.put(key, value);
		return false;
	}

	@Override
	public boolean removeRule(String rule) {
		if (RuleMap.containsKey(rule)) {
			RuleMap.remove(rule);
			return true;
		}
		return false;
	}
	public Map<String,String> getRule(){
		return RuleMap;
	}
}
